package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.UseInventoryUser;
import com.wing.cabinet.model.request.UseInventoryUserForm;
import com.wing.cabinet.model.response.KnifeUserVO;
import com.wing.cabinet.model.response.UseInventoryUserVO;

import java.util.List;
import java.util.Map;

/**
 * 用户产品在用库存-Service
 *
 * @author
 */
public interface UseInventoryUserService extends IService<UseInventoryUser> {

    /**
     * 添加
     *
     * @param useInventoryUserForm
     * @return
     */
    int add(UseInventoryUserForm useInventoryUserForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<UseInventoryUserVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<UseInventoryUserVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    UseInventoryUserVO get4appById(Long id);

    /**
     * 在用统计导出
     * @param params
     * @return
     */
    List<UseInventoryUserVO> ecxportList(Map<String, Object> params);

    List<KnifeUserVO> getKnifeUsers();

}
